home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 74
/
074.d81
/
char swap.buddy
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
887b
|
60 lines
100 sys999
110 .org $c000
120 .obj "switch $c000"
130 jsr $aefd ;check comma
140 jsr $ad8a ;get this
150 jsr $b7f7 ;change fac
160 lda $14
170 sta this
180 jsr $aefd ;check comma
190 jsr $ad8a ;get that
200 jsr $b7f7 ;change fac
210 lda $14
220 sta that
230 jsr $aefd ;check comma
240 jsr $ad8a ;get color
250 jsr $b7f7 ;change fac
260 lda $14
270 sta color
280 lda #0
290 sta 251
300 sta 253
310 lda 648
320 sta 252
330 lda #>55296
340 sta 254
341 - lda 53265
342 bpl -
350 main ldy #0
360 ldx #0
370 - lda (251),y
380 cmp this
390 bne +
400 jsr change
410 + iny
420 bne -
430 inx
440 inc 254
450 inc 252
460 cpx #3
470 bne -
480 last'loop lda (251),y
490 cmp this
500 bne +
510 jsr change
520 + iny
530 cpy #232
540 bne last'loop
550 rts
560 change lda that
570 sta (251),y
580 lda color
590 sta (253),y
600 rts
610 this =*
620 .buf 1
630 that =*
640 .buf 1
650 color =*
660 .buf 1